use opencv::{ highgui, prelude::*, Result, imgcodecs};
// 读取图片
pub fn run() -> Result<()>{
    let imgpath = "test.png";
	let mat = imgcodecs::imread(&imgpath,1).unwrap_or_default();

	if mat.empty() {
        
    }else {
        highgui::imshow("show_img",&mat).expect("显示失败");
        highgui::wait_key(0).expect("等待失败");
        highgui::destroy_all_windows().expect("关闭窗口失败");
    }

    Ok(())
}